/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package SMC.PresentationLayer;

import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Image;
import javax.swing.ImageIcon;
import javax.swing.JPanel;

/**
 *
 * @author SATELLITE
 */
public class PanelImagen extends JPanel{
    @Override
    public void paintComponent(Graphics g){
        Dimension tamaño= getSize();
        
        ImageIcon im = new ImageIcon(new ImageIcon(getClass().getResource("/SMC/images/Fondo_Menú_Principal.jpg")).getImage());
        g.drawImage(im.getImage(),0,0,tamaño.width,tamaño.height,null);
        
    }
    
    
}
